package net.tailfish.api.base.enums;

/**
 * @PackageName net.tailfish.api.base.enums
 * @ClassName SnowEnum
 * @Author tailFish
 * @Date Created in 16:42 2021/5/28
 * @Description 基础枚举，枚举建议分段表示 ，比如：{0-1000}，{1001-2000}
 */
public enum SnowEnum {
    OK("200","成功","SUCCESS !!!"),
    BAD_REQUEST("400","请求参数不合法","Bad Request !!!"),
    SYSTEM_ERROR("-1","系统异常","System Error !!!")
    ;

    private String code;

    private String msg;

    private String desc;

    SnowEnum(String code, String msg, String desc) {
        this.code = code;
        this.msg = msg;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getDesc() {
        return desc;
    }
}
